name := "janalyse-series"

version := "1.4.0"

organization :="fr.janalyse"

organizationHomepage := Some(new URL("http://www.janalyse.fr"))

scalaVersion := "2.9.2"

crossScalaVersions := Seq( "2.9.1", "2.9.2")

//scalacOptions ++= Seq(  "-Yvirtpatmat") // "-deprecation", "-unchecked", "-Ypmat-naive"

libraryDependencies <++=  scalaVersion { sv =>
   Seq("org.scala-lang" % "scala-swing" % sv)
}

libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"

libraryDependencies += "org.jfree" % "jfreechart" % "1.0.14"

libraryDependencies += "junit" % "junit" % "4.10" % "test"

libraryDependencies += "fr.janalyse" %% "unittools" % "0.2.1"

libraryDependencies += "org.apache.commons" % "commons-compress" % "1.0"

resolvers += "Repo1 Maven" at "http://repo1.maven.org/maven2"

resolvers += "JAnalyse RepositoryXXX" at "http://www.janalyse.fr/repository/"

publishTo := Some(
     Resolver.sftp(
         "JAnalyse Repository",
         "www.janalyse.fr",
         "/home/tomcat/webapps-janalyse/repository"
     ) as("tomcat", new File(util.Properties.userHome+"/.ssh/id_rsa"))
)

// Doesn't work
//scalacOptions in doc ++= Seq( 
//    "-doc-root-content", "src/main/scala/fr/janalyse/series/package.scala" 
//) 
